package com.xnyzc.lhy.mis.entity.work;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
*
* 司机工作统计表（日统计，实时更新）
*
* @author zhuyubin
* @since 2019-08-03
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaDWorkStatistics对象", description="司机工作统计表（日统计，实时更新）")
public class OaDWorkStatistics implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value="statistics_id", type = IdType.INPUT)
    private Long statisticsId;

    @ApiModelProperty(value = "司机userID")
    private Long driverId;

    @ApiModelProperty(value = "当日总收入")
    private String dayTotalCost;

    @ApiModelProperty(value = "当日总接单数")
    private Integer dayOrderNumber;

    @ApiModelProperty(value = "当日在线时长（分钟）")
    private Integer dayOnlineTime;

    @ApiModelProperty(value = "当日在线时长")
    private Integer dayServiceTime;

    @ApiModelProperty(value = "当日行驶里程")
    private Integer dayDrivenDistance;

    @ApiModelProperty(value = "总服务分数")
    private Integer totalServiceScore;

    @ApiModelProperty(value = "统计时间（日）")
    private LocalDate statisticsTime;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "服务时长(分钟)")
    private Integer dayServerTime;

    @ApiModelProperty(value = "接单时长(分钟)")
    private Integer dayOrderTime;

    @ApiModelProperty(value = "休息时长(分钟)")
    private Integer dayRestTime;


    public static final String STATISTICS_ID = "statistics_id";

    public static final String DRIVER_ID = "driver_id";

    public static final String DAY_TOTAL_COST = "day_total_cost";

    public static final String DAY_ORDER_NUMBER = "day_order_number";

    public static final String DAY_ONLINE_TIME = "day_online_time";

    public static final String DAY_SERVICE_TIME = "day_service_time";

    public static final String DAY_DRIVEN_DISTANCE = "day_driven_distance";

    public static final String TOTAL_SERVICE_SCORE = "total_service_score";

    public static final String STATISTICS_TIME = "statistics_time";

    public static final String TAG = "tag";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String EXPAND3 = "expand3";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

    public static final String DAY_SERVER_TIME = "day_server_time";

    public static final String DAY_ORDER_TIME = "day_order_time";

    public static final String DAY_REST_TIME = "day_rest_time";

}
